﻿


exports.TryLogin = function (username, password,response,cb) {

    var dbController = require('./dbController');
    var user = dbController.queryUser(username,password,response,cb);

}


exports.TryRegister = function (username, password, name, picture,  cb) {

    var dbController = require('./dbController');
    var user = dbController.setUser(username, password,name,picture, cb);


}






exports.checkUsername = function (username, response, cb) {

    var dbController = require('./dbController');
    var user = dbController.queryUser(username, "", response, cb);


}